/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.dao;

import java.util.List;

import com.sigmatrix.h5.dao.impl.common.BaseDao;
import com.sigmatrix.h5.dto.WarehouseData;
import com.sigmatrix.h5.entity.Warehouse;
import com.sigmatrix.h5.exception.DaoException;

/**
 *@ClassName: WarehouseDao
 *@Description: 仓库数据库操作接口
 *@author youjun
 *@date 2017-06-24 17:31:11
 */
public interface WarehouseDao extends BaseDao<Warehouse> {

	/**
	 *@Title: findById
	 *@Description: 根据主键查找仓库
	 *@return Warehouse
	 *@author youjun
	 *@date 2017-06-24 17:31:11
	 *@param id
	 *@param eseCode
	 *@return
	 *@throws DaoException 
	 */
	Warehouse findById(final Integer id, String eseCode) throws DaoException;
	
	/**
	 *@Title: findListByCondition
	 *@Description: 根据条件查找仓库列表
	 *@return List<Warehouse>
	 *@author youjun
	 *@date 2017-06-24 17:31:11
	 *@param warehouse
	 *@param eseCode
	 *@return
	 *@throws DaoException
	 */
	List<Warehouse> findListByCondition(final Warehouse warehouse, final String eseCode) throws DaoException;

	/**
	 *@Title: findPartColumnListByCondition
	 *@Description: 根据条件查找仓库部分字段列表
	 *@return List<WarehouseData>
	 *@author youjun
	 *@date 2017年6月27日 上午11:32:57
	 *@param warehouse
	 *@param eseCode
	 *@return
	 */
	List<WarehouseData> findPartColumnListByCondition(Warehouse warehouse, final String eseCode) throws DaoException;
	
	/**
	 *@Title: findPartByDealerId
	 *@Description: TODO()
	 *@return List<WarehouseData>
	 *@author 
	 *@date 2017年9月14日 下午9:05:26
	 *@param eseCode
	 *@param dealerId
	 *@return
	 *@throws DaoException
	 */
	List<WarehouseData> findPartByDealerId(final String eseCode,final Integer dealerId) throws DaoException;
	
	/**
	 * 
	 *@Title: findPartByDealerIdDefault
	 *@Description: TODO()
	 *@return List<WarehouseData>
	 *@author gaomingkai
	 *@date 2017年11月17日 下午3:53:06
	 *@param eseCode
	 *@param dealerId
	 *@return
	 *@throws DaoException
	 */
	List<WarehouseData> findPartByDealerIdDefault(final String eseCode,final Integer dealerId) throws DaoException;
}
